/* $RCSFile: ADNDynOrganizationui.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/CRMWrapper3/DynEntities/ADNDynOrganizationui.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:33  christian.surieux
 *   Added Log to All cs files
 */

/* Copyrights Christian Surieux 2010 */
/* Class ADNDynOrganizationui */
/* Date 2010-01-06 16:10:17Z */

using System;
using System.Diagnostics;
using System.Collections;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using CrmSdk;

namespace AddonNice.CRMWrapper
{
    public class ADNDynOrganizationui : DynEntity
    {
        protected class Ftor: DFactor
        {
            public Ftor() : base(CrmStr.organizationui)
            {}

            public override Type DynType
            { get { return typeof(ADNDynOrganizationui); } }

            public override string DynTypename
            {   get{ return CrmStr.organizationui;}}

            public override DynEntity Build()
            {   return new ADNDynOrganizationui();}

            public override DynEntity Build(CRMWrapperBase w, InternalDynamicEntity dEntity, PropertyDescriptorCollection wproperties)
            {   return new ADNDynOrganizationui(w, dEntity, wproperties, null);}

            public override DynEntity Build(CRMWrapperBase w, string PrimaryFieldValue)
            {   return new ADNDynOrganizationui(w,PrimaryFieldValue);}

            public override DynEntity Build(CRMWrapperBase w,Guid PrimaryKeyValue)
            {   return new ADNDynOrganizationui(w,PrimaryKeyValue);}
        }

        static ADNDynOrganizationui(){new Ftor();} 
        
        public override bool HasOwnerProperty
        {
            get { return false; }
        }
        
        public override bool HasPrimaryField
        {
            get
            { return false; }
        }

        public ADNDynOrganizationui() : base() { }
        
        public ADNDynOrganizationui(CRMWrapperBase w,string PrimaryFieldValue)
            : base(w,CrmStr.organizationui)
        { }
        
        public ADNDynOrganizationui(CRMWrapperBase w,Guid CrmId) : base(w,CrmStr.organizationui,CrmId) { }
        
        public ADNDynOrganizationui(CRMWrapperBase w,InternalDynamicEntity e) : base(w,CrmStr.organizationui,e,null,null) { }
        
        public ADNDynOrganizationui(CRMWrapperBase w,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(w,CrmStr.organizationui,e,prop,s) { }
        
        public ADNDynOrganizationui(ResetWrapperHandler fn,string PrimaryFieldValue)
            : base(fn,CrmStr.organizationui)
        { }
        
        public ADNDynOrganizationui(ResetWrapperHandler fn,Guid CrmId) : base(fn,CrmStr.organizationui,CrmId) { }
        
        public ADNDynOrganizationui(ResetWrapperHandler fn,InternalDynamicEntity e) : base(fn,CrmStr.organizationui,e,null,null) { }
        
        public ADNDynOrganizationui(ResetWrapperHandler fn,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(fn,CrmStr.organizationui,e,prop,s) { }

        /* Properties */

        [CrmDynAttribute(CrmStr.organizationui)]
        public Guid formid
        {
            get
            { return KeyPropertyValue(CrmStr.formid); }
            set
            { AddKeyProperty(CrmStr.formid,value); }
        }

        protected override void SetCrmIdProperty(Guid crmId)
        {
            if ( !dicProperty.ContainsKey(CrmStr.formid) || KeyPropertyValue(CrmStr.formid) != crmId )
                formid = crmId;
        }
        public override Guid PrimaryKeyGuidValue
        {
            get
            { return formid; }
            set { formid = value; }
        }
        [CrmDynAttribute(CrmStr.organizationui)]
        public int customizationlevel
        {
            get
            { return NumberPropertyValue(CrmStr.customizationlevel); }
            set
            { AddNumberProperty(CrmStr.customizationlevel,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string fieldxml
        {
            get
            { return StringPropertyValue(CrmStr.fieldxml); }
            set
            { AddStringProperty(CrmStr.fieldxml,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public Guid formidunique
        {
            get
            { return UniqueIdentifierPropertyValue(CrmStr.formidunique); }
            set
            { AddUniqueIdentifierProperty(CrmStr.formidunique,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string formxml
        {
            get
            { return StringPropertyValue(CrmStr.formxml); }
            set
            { AddStringProperty(CrmStr.formxml,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string gridicon
        {
            get
            { return StringPropertyValue(CrmStr.gridicon); }
            set
            { AddStringProperty(CrmStr.gridicon,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public bool inproduction
        {
            get
            { return BooleanPropertyValue(CrmStr.inproduction); }
            set
            { AddBooleanProperty(CrmStr.inproduction,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string largeentityicon
        {
            get
            { return StringPropertyValue(CrmStr.largeentityicon); }
            set
            { AddStringProperty(CrmStr.largeentityicon,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string objecttypecode
        {
            get
            { return EntityNameReferencePropertyValue(CrmStr.objecttypecode); }
            set
            { AddEntityNameReferenceProperty(CrmStr.objecttypecode,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public override Guid organizationid
        {
            get
            { return LookupPropertyValue(CrmStr.organizationid); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string outlookshortcuticon
        {
            get
            { return StringPropertyValue(CrmStr.outlookshortcuticon); }
            set
            { AddStringProperty(CrmStr.outlookshortcuticon,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string previewcolumnsetxml
        {
            get
            { return StringPropertyValue(CrmStr.previewcolumnsetxml); }
            set
            { AddStringProperty(CrmStr.previewcolumnsetxml,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public string previewxml
        {
            get
            { return StringPropertyValue(CrmStr.previewxml); }
            set
            { AddStringProperty(CrmStr.previewxml,value); }
        }

        [CrmDynAttribute(CrmStr.organizationui)]
        public int version
        {
            get
            { return NumberPropertyValue(CrmStr.version); }
            set
            { AddNumberProperty(CrmStr.version,value); }
        }
    }
}